Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> div { border: 15px solid transparent; width: 250px; padding: 10px 20px; } #round { -webkit-border-image: url(border.png) 30 30 round; /* Safari 3.1-5 */ -o-border-image: url(border.png) 30 30 round; /* Opera 11-12.1 */ border-image: url(border.png) 30 30 round; } #stretch { -webkit-border-image: url(border.png) 30 30 stretch; /* Safari 3.1-5 */ -o-border-image: url(border.png) 30 30 stretch; /* Opera 11-12.1 */ border-image: url(border.png) 30 30 stretch; } </style> </head> <body> <p><strong>Note:</strong> Internet Explorer 10, and earlier versions, do not support the border-image property.</p> <p>The border-image property specifies an image to be used as a border.</p> <div id="round">Here, the image is tiled (repeated) to fill the area.</div> <br> <div id="stretch">Here, the image is stretched to fill the area.</div> <p>Here is the image that is used:</p> <img src="border.png"> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss3_border-image by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:45 GMT --> </html>
Result:
Try it Yourself - © w3schools.com